import 'package:flutter_module/model/welfare_team_list_info.dart';

class WelfareTimeTeamListInfo {
  WelfareTeamListInfo? myInfo;
  List<WelfareTeamListInfo>? infoList;

  WelfareTimeTeamListInfo(this.myInfo, this.infoList);

  WelfareTimeTeamListInfo.fromJson(dynamic json) {
    myInfo = WelfareTeamListInfo.fromJson(json['myInfo']);
    if (json["infoList"] is List) {
      infoList = json["infoList"] == null
          ? null
          : (json["infoList"] as List)
              .map((e) => WelfareTeamListInfo.fromJson(e))
              .toList();
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data['myInfo'] = myInfo?.toJson();
    if (infoList != null) {
      _data["infoList"] = infoList?.map((e) => e.toJson()).toList();
    }
    return _data;
  }
}

class WelfareHotTeamListInfo {
  WelfareTeamListInfo? myHotInfo;
  List<WelfareTeamListInfo>? hotInfoList;

  WelfareHotTeamListInfo(this.myHotInfo, this.hotInfoList);

  WelfareHotTeamListInfo.fromJson(dynamic json) {
    myHotInfo = WelfareTeamListInfo.fromJson(json['myHotInfo']);
    if (json["hotInfoList"] is List) {
      hotInfoList = json["hotInfoList"] == null
          ? null
          : (json["hotInfoList"] as List)
          .map((e) => WelfareTeamListInfo.fromJson(e))
          .toList();
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data['myHotInfo'] = myHotInfo?.toJson();
    if (hotInfoList != null) {
      _data["hotInfoList"] = hotInfoList?.map((e) => e.toJson()).toList();
    }
    return _data;
  }
}
